﻿@using Utils;
@model WebUI.Models.JobsViewModel
@{
    ViewBag.Title = "Design Jobs - JuicyBasket";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="mainCol">
    <div>
        <h2>@Model.Tag.ToUpperAllFirstLetter() Jobs 
            @if (!string.IsNullOrEmpty(Model.Tag))
            {
            <span>(<a href="/jobs">view all</a>)</span>
            }
        </h2>
    </div>
    <div class="tabsbottom"></div>
    <div class="clear"></div>
    <div class="searchjoblist">
    @foreach (var coJob in Model.CoJobList)
    { 
        <div class="singlejob">
            <div>
                <div class="title">
                    <a href="/jobs/@coJob.Job.JobID/@CommonUtilities.GetTitleInUrl(coJob.Job.Title)">@coJob.Job.Title.ToUpperAllFirstLetter()</a>
                    <span>&nbsp;&nbsp;@coJob.Co.Name</span>
                </div>
                <div class="posted">@coJob.Job.PublishDate.ToDateTimeString()</div>
            </div>
            <div class="clear"></div>
            <div class="location">
                @coJob.Job.Location 
                @if (coJob.Job.RelocationOffered)
                { 
                    @:- relocation offered
                }
                @if (coJob.Job.AllowTelecommute)
                { 
                    @:- telecommute
                }
            </div>
            @if (coJob.Job.JobKeywordList.Count > 0)
            {
            <div>
                <div class="smallspacer"></div>
                <ol class="tags">
                    @foreach (var keyword in coJob.Job.JobKeywordList)
                    { 
                        <li><a href="/jobs/tag/@keyword">@keyword</a></li>
                    }
                </ol>
            </div>
            }
            <div class="clear"></div>
        </div>
    }
    </div>
</div>

<div class="sideCol">

</div>
<div class="largespacer"></div>
